Allowing locking with mutex in packet buffer