Assume that you use in-memory transactions together with the sp_getapplock system stored procedure in Microsoft SQL Server 2016. If you enable server auditing on the SCHEMA_OBJECT_ACCESS_GROUP server-level audit action group, you receive a "Msg 41317" error message that resembles following:
Msg 41317, Level 16, State 4, Line LineNumber
A user transaction that accesses memory optimized tables or natively compiled modules cannot access more than one user database or databases model and msdb, and it cannot write to master.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.