move mutex to port layer at crypto level
add proper locking to fp ecc